<%--
  Created by IntelliJ IDEA.
  User: 宇
  Date: 2023/8/14
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="${pageContext.request.contextPath }"/>
<html>
<head>
    <title>猫眼电影首页</title>
    <link href="${path}/css/back_Home.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-3.6.4.js"></script>
</head>
<body>
<div id="box1">
    <h1 id="mz">欢迎进入猫眼电影管理首页</h1>
    <c:set value="${sessionScope.cinCount}" var="cinCount"/>
    <c:choose>
        <c:when test="${empty cinCount}">
            <script>
                window.location="${path}/CinServlet?prom=cinCount"
            </script>
        </c:when>
        <c:otherwise>
            <div class="a1"><img src="${path}/images/back_Home/de.png" class="a2"><span class="rzyy">入住影院</span><b>${cinCount}</b></div>
        </c:otherwise>
    </c:choose>

    <c:set value="${sessionScope.count}" var="count"/>
    <c:choose>
        <c:when test="${empty MovCount}">
            <script>
                window.location="${path}/MovieServlet?prom=MovCount"
            </script>
        </c:when>
        <c:otherwise>
            <div class="a1"><img src="${path}/images/back_Home/ds.png" class="a2"><span class="rzyy">电影总数</span><b>${MovCount}</b></div>
        </c:otherwise>
    </c:choose>

    <c:set value="${sessionScope.count}" var="count"/>
    <c:choose>
        <c:when test="${empty UserCount}">
            <script>
                window.location="${path}/UserServlet?prom=UserCount"
            </script>
        </c:when>
        <c:otherwise>
            <div class="a1"><img src="${path}/images/back_Home/dc.png" class="a2"><span class="rzyy">注册总数</span><b>${UserCount}</b></div>
        </c:otherwise>
    </c:choose>


    <c:set value="${sessionScope.count}" var="count"/>
    <c:choose>
        <c:when test="${empty OrderCount}">
            <script>
                window.location="${path}/OrderServlet?prom=OrderCount"
            </script>
        </c:when>
        <c:otherwise>
            <div class="a1"><img src="${path}/images/back_Home/dx.png" class="a2"><span class="rzyy">订单总数</span><b>${OrderCount}</b></div>
        </c:otherwise>
    </c:choose>

    <div class="a1"><img src="${path}/images/back_Home/dv.png" class="a2"><span class="rzyy">放映场次</span><span class="a3">10</span></div>
    <div class="a1"><img src="${path}/images/back_Home/db.png" class="a2"><span class="rzyy">充值总数</span><span class="a3">20</span></div>
    <div class="a1"><img src="${path}/images/back_Home/dz.png" class="a2"><span class="rzyy">充值成功数</span><span class="a3">20</span></div>
    <div class="a1"><img src="${path}/images/back_Home/df.png" class="a2"><span class="rzyy">累计票房</span><span class="a3">100</span></div>
</div>

</body>
</html>